import request from '@/utils/request'

/**导出pdf */
export function getPdfOut(id) {
    return request({
        url: '/app/order/pdfOut/' + id,
        method: 'get'
    })
}
/**订单详情 */
export function getInfo(query) {
    return request({
        url: '/app/order/getInfo/',
        method: 'get',
        params: query
    })
}
/**获取支付参数 */
export function getPayInfo(query) {
    return request({
        url: '/app/order/getPayInfo/',
        method: 'get',
        params: query
    })
}
/**退款申请 */
export function getApplyRefund(data) {
    return request({
      url: '/app/order/applyRefund',
      method: 'post',
      data: data
    })
}
  // 根据字典类型查询字典数据信息
export function getDicts(dictType) {
    return request({
      url: '/system/dict/data/type/' + dictType,
      method: 'get'
    })
  }